package com.hp.hunpai.controller;


import com.hp.hunpai.entity.User;
import com.hp.hunpai.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chenguoji
 * @since 2020-10-12
 */
@RestController
@RequestMapping("/hunpai/user")
public class UserController {
    @Autowired
    private UserService userService;

    @GetMapping("getaaa")
    public void getaaa() {
        List<User> list = userService.list(null);
        System.out.println(list);
    }

}

